Compact menu on mobile (#114) #142
Merged
+219
−42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On a phone the header took two rows on the search page and three on the wine page, because the links and the search field each got their own row.
Below 768 px the header now shows only the logo and a "Meny" button. The button opens the search field and the links, with "Utforsk" first. On wider screens nothing changes.
How the menu works
aria-expanded).Testing
npm run check -- --e2epasses.menu.spec.ts, that checks at 375 px that the header is one line, that the menu works with the keyboard, that axe finds no problems with the menu open, and that there is no sideways scroll at 320 px.Not tested with VoiceOver by hand yet. That can be done together with #113.
Closes #114